/**
 * author: XGP
 * date: 2018/07/25
 * des: 人员招聘-参数设置
 */
import request from '@/utils/request'

/**
 * 查询规则
 */
export function getruleList(data) {
  return request({
    url: '/paramattendrules/findAll',
    method: 'get',
    params: data
  })
}

/**
 * 地址list
 */
export function getSetlist(data) {
  return request({
    url: '/attendanceruleaddrs/findAll',
    method: 'get',
    params: data
  })
}



/**
 * 查询淘汰原因参数
 */
export function getObsolete(data) {
  return request({
    url: '/parammanages/findAll',
    method: 'get',
    params: data
  })
}

/**
 * 新增保存规则
 */
export function addRule(data) {
  return request({
    url: '/paramattendrules/insert',
    method: 'post',
    params: data
  })
}


/**
 * 新增保存地址
 */
export function addSet(data) {
  return request({
    url: '/attendanceruleaddrs/insert',
    method: 'post',
    params: data
  })
}

// editSet,editSet,addSet,addRule,deleteSet,deleteRule

/**
 * 编辑保存
 */
export function editRuleSub(data) {
  return request({
    url: '/paramattendrules/update',
    method: 'put',
    params: data
  })
}

/**
 * 编辑保存
 */
export function editSet(data) {
  return request({
    url: '/paramattendrules/update',
    method: 'put',
    params: data
  })
}



/**
 * 删除Set
 */
export function deleteSet(id) {
  return request({
    url: '/paramattendrules/delete/' + id,
    method: 'delete'
  })
}

/**
 * 删除rule
 */
export function deleteRule(id) {
  return request({
    url: '/paramattendrules/delete/' + id,
    method: 'delete'
  })
}




/**
 * 查询规则的下拉列表
 */
export function getruleAll(data) {
  return request({
    url: '/paramattendrules/findAll',
    method: 'get',
    params: data
  })
}

